const CracoLessPlugin = require('craco-less')

const path = require('path')
const resolve = pathname => path.resolve(__dirname, pathname)

module.exports = {
	plugins: [
		{
			plugin: CracoLessPlugin,
			options: {
				lessLoaderOptions: {
					lessOptions: {
						modifyVars: { '@primary-color': '#1DA57A' },
						javascriptEnabled: true
					}
				}
			}
		}
	],

	webpack: {
		alias: {
			'@': resolve('src'),
			components: resolve('src/components')
		}
	}
}
